package com.itfitness.svgmap;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import com.itfitness.svgmap.activitys.MapDemoAvtivity;
import com.itfitness.svgmap.activitys.MapLibActivity;
import com.wxy.chinamapview.view.ChinaMapView;

public class MainActivity extends AppCompatActivity {
    private Button btMapdemo;
    private Button btLibmap;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        btMapdemo = (Button) findViewById(R.id.bt_mapdemo);
        btLibmap = (Button) findViewById(R.id.bt_libmap);
        btMapdemo.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //自己手写的
                startActivity(new Intent(MainActivity.this, MapDemoAvtivity.class));
            }
        });
        btLibmap.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //第三方比较好的实现
                startActivity(new Intent(MainActivity.this, MapLibActivity.class));
            }
        });
    }
}
